Skip to content

Lenient markup#5851

Merged
willmcgugan merged 4 commits into
mainfrom
lenient-markup
Jun 11, 2025
Merged

Lenient markup#5851
willmcgugan merged 4 commits into
mainfrom
lenient-markup

Conversation

@willmcgugan

@willmcgugan willmcgugan commented Jun 8, 2025

Copy link
Copy Markdown
Member

Fixes #5768

Text enclosed in square brackets, that does not contain a style, will be included verbatim.

This means that "[0]" will not raise an error or be silently removed. This means that Python list literals won't be considered tags. i.e. ["foo"], [1,2,3], [] are all rendered verbatim.

@edward-jazzhands

Copy link
Copy Markdown
Contributor

I think its great. Perhaps it would be possible to make this enabled/disabled by a flag as well?

@willmcgugan willmcgugan merged commit d4d4f71 into main Jun 11, 2025
23 checks passed
@willmcgugan willmcgugan deleted the lenient-markup branch June 11, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[0] is being considered a markup tag

2 participants